﻿using Blog.Core.Domain.Model.User;
using Blog.Core.DTO;
using Blog.Core.DTO.ViewModel;
using Blog.Core.DTO.ViewModel.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.IServices.IUser
{
    /// <summary>
    /// 角色信息服务接口
    /// </summary>
    public interface IRolesPermissionService : IBaseService<RolePermission>
    {
        /// <summary>
        /// 角色添加权限
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task<int> RolePermission(RequestRolePermissionDTO entity);
        /// <summary>
        /// 用户权限反填
        /// </summary>
        /// <param name="roleid"></param>
        /// <returns></returns>
        Task<dynamic> GetRolePermission(int roleid);
        /// <summary>
        /// 用户权限修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<dynamic> UpdatePermission(RequestRolePermissionDTO model);
    }
}
